const Router = require('koa-router')
const {verifyAuth} = require('../middleware/auth.middleware')
const {
  avatarHandle, 
} = require('../middleware/file.middleware')
const {
  saveAvatar
} = require('../controller/file.controller')
const fileRouter = new Router({prefix: '/upload'})

fileRouter.post('/avatar', verifyAuth, avatarHandle, saveAvatar)

module.exports = fileRouter